package com.yunyi.system.service;

import com.yunyi.common.core.domain.AjaxResult;
import com.yunyi.system.domain.EmrCaseSlide;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【emr_case_slide(病例切片)】的数据库操作Service
* @createDate 2023-08-29 08:44:39
*/

/**
 * 根据条件查询预约切片，并且进行分页
 */
public interface EmrCaseSlideService extends IService<EmrCaseSlide> {
 /**
  * 带条件查询并分页
  * @param pageNum
  * @param pageSize
  * @param apmstatus
  * @param condition
  * @return
  */
 AjaxResult listALlBycondition(Integer pageNum, Integer pageSize, Integer apmstatus, String condition);

 /**
  * 修改预约状态
  * @param id
  * @return
  */
 AjaxResult updateapmstatusById(String id,String apmstatus);

 /**
  * 根据id删除
  * @param Id
  * @return
  */
 AjaxResult deleteById(String Id);

 /**
  * 添加预约
  * @param emrCaseSlide
  * @return
  */
 AjaxResult insertCaseSide(EmrCaseSlide emrCaseSlide);

    /**
     * 根据申请医院获取待分诊病例信息
     * @param hospital  申请医院
     * @param pageNum
     * @param pageSize
     * @return
     */
    AjaxResult getCaseByHospital(Integer status,String hospital,Integer pageNum,Integer pageSize);

    AjaxResult getSection(String caseId);

    AjaxResult getSlides(String caseNo);

    AjaxResult allotCaseSlide(List<String> ids);

    AjaxResult revocation(String id,String reason);
}
